package cn.mw.cmdb.service;

import cn.mw.cmdb.entity.InstanceInfo;
import cn.mw.microMonitorCommon.entity.cmdb.DataSourceInstanceVo;
import cn.mw.microMonitorCommon.entity.cmdb.DataSourceVo;
import cn.mw.microMonitorCommon.enums.DatasourceSyncMethodEnum;

import java.util.List;
import java.util.Map;

public interface InstanceSyncService {
    DatasourceSyncMethodEnum getDatasourceSyncMethodEnum();

    List<DataSourceInstanceVo> syncInstances(DataSourceVo datasourceVo,Map<DataSourceInstanceVo, InstanceInfo> dataSource2InstanceInfoMap) throws Exception;
}
